<a href="">Add Vendor</a>
<form>
<table border = "1">
	<thead>
		<th colspan="2">General Infos</th>
	</thead>
	<tbody>
		<tr>
			<td>Vendor Name</td>
			<td><?php echo $vendor->getVendorName()?></td>
		</tr>
		<tr>
			<td>Vendor Code</td>
			<td><?php echo $vendor->getVendorCode()?></td>
		</tr>
		<tr>
			<td>Vendor Id</td>
			<td><?php echo $vendor->getId();?></td>
		</tr>
		<tr>
			<td>Business Type</td>
			<td>
				<select>
				<?php foreach(Vendor_object::getSupportedBusinessType() as $key => $businessType): ?>
				<option value="<?php echo $key;?>"><?php echo $businessType;?></option>
				<?php endforeach;?>
				</select>
			</td>
		</tr>
	</tbody>
</table>
<h2>Branches</h2>
<table border = "1">
	<thead>
		<tr>
			<th></th>
			<th>name</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($branches as $branch):?>
		<tr>
			<td><?php echo $branch->getId();?></td>
			<td><?php echo $branch->getName();?></td>
		</tr>
		<?php endforeach; ?>
		
	</tbody>
</table>
<h2>Contacts</h2>
<h3>primary contacts</h3>
<table border = "1">
	<thead>
		<tr>
			<th></th>
			<th>Title</th>
			<th>Designation</th>
			<th>First Name</th>
			<th>Last Name</th>
			<th>Email</th>
			<th>Phone</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td></td>
			<td><?php echo $primary_contact->getTitle();?></td>
			<td><?php echo $primary_contact->getDesignation();?></td>
			<td><?php echo $primary_contact->getFirstName();?></td>
			<td><?php echo $primary_contact->getLastName();?></td>
			<td><?php echo $primary_contact->getEmail();?></td>
			<td><?php echo $primary_contact->getPhoneNumber();?></td>
		</tr>
	</tbody>
</table>
</form>